package com.duan.mapper;

import com.duan.pojo.Setting;
import com.duan.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SettingMapper {
    // 通过session中userId，查询此用户设置此次抽奖的设置信息
    public Setting selectByUserId(Integer userId);

    //通过userId查询settingId
    public Integer queryIdByUserId(Integer userId);

    //修改batchNumber
    public int update(Integer batchNumber, Integer userId);


}
